import Login from "./pages/login/Login"
import { BrowserRouter, HashRouter, Route, Routes, Navigate } from 'react-router-dom'
import Logins from "./pages/login/Login.jsx"
import Register from "./pages/register/Register"
import Home from "./pages/home/Home"
import Examination from "./pages/examination/Examination"
import Start from "./pages/start/Start"
import Endexam from "./pages/end/Endexam"
import Answer from "./pages/answer/Answer"
import Analysis from "./pages/analysis/Analysis";
import Wrongbook from "./pages/wrongbook/Wrongbook";
import Collection from './pages/collection/Collection'
function App() {
  return (
    <HashRouter>
      <Routes>
        <Route path="/" element={<Navigate to='/login'></Navigate>}></Route>
        <Route path="/login" element={<Login></Login>}></Route>
        <Route path="/register" element={<Register></Register>}></Route>
        <Route path="/home" element={<Home></Home>}></Route>
        <Route path="/examination/:_id" element={<Examination></Examination>}></Route>
        <Route path="/start/:_id" element={<Start></Start>}></Route>
        <Route path="/endexam" element={<Endexam></Endexam>}></Route>
        <Route path="/answer/:_id" element={<Answer></Answer>}></Route>
        <Route path="/analysis" element={<Analysis></Analysis>}></Route>
        <Route path="/wrongbook" element={<Wrongbook></Wrongbook>}></Route>
        <Route path="/collection" element={<Collection></Collection>}></Route>
      </Routes>
    </HashRouter>
  )
}

export default App
